package nl.wubinator.aeve.utils;

import java.util.ArrayList;

import org.apache.http.message.BasicNameValuePair;

/**
 * This class will hold all the parameters required to make a connection to the eve api
 * when authorization is required. The constructor will create the parameters userId and apiKey
 * which must always be provided. Any other parameter can be added by using the addParameter method.
 * 
 *  The getParameters method will be used by the ConnectorBase.
 * 
 * @author Rick
 *
 */

//http://api.eve-online.com/char/CharacterSheet.xml.aspx?userID=3543720&apiKey=SA6o1OWu36go1rMv2xd9tkDJnNTh54p31Idx2pbHBGylDYJRd5edOA36GO2lvQNM&characterID=1293345166

public class Parameters {
	public static String USER_ID = "3543720";
	public static String API_KEY = "SA6o1OWu36go1rMv2xd9tkDJnNTh54p31Idx2pbHBGylDYJRd5edOA36GO2lvQNM";

	private ArrayList<BasicNameValuePair> parameters = new ArrayList<BasicNameValuePair>();

	public Parameters() {
		parameters.add(new BasicNameValuePair("userId", USER_ID));
		parameters.add(new BasicNameValuePair("apiKey", API_KEY));
	}

	public void addParameter(String key, String value) {
		parameters.add(new BasicNameValuePair(key, value));
	}

	public ArrayList<BasicNameValuePair> getParameters() {
		return parameters;
	}
}
